/*
 * TCPClientWrapper.h
 *
 *  Created on: Sep 29, 2017
 *      Author: zjf
 */

#ifndef SRC_TCPCLIENTWRAPPER_H_
#define SRC_TCPCLIENTWRAPPER_H_

#include <Poco/Types.h>
#include "TCPClientChannel.h"

using namespace Poco;

namespace network
{

class TCPClientWrapper
{
public:
	TCPClientWrapper(std::string& strIP, UInt16 nPort);
	virtual ~TCPClientWrapper();

	TCPClientChannel::Ptr& connectToChannel(std::string& name);

private:
	TCPClientChannel::Ptr _poChannel;
	std::string _strServerIP;
	UInt16 _nPort;
};

} /* namespace network */

#endif /* SRC_TCPCLIENTWRAPPER_H_ */
